<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var movie={
        movieName:"长津湖",
        duration:176,
        price:50,
        showTime:function(){
            console.log(this);
            console.log(this.movieName + " 2021-10-01 ")
        }
    }

    //方法的this会指向该方法的调用主体，
    //谁调用的这个方法，this就指向谁
    movie.showTime();
</script>
</html>